str1 = input()
str2 = input()
judge = str1.isalnum() and str2.isalnum()
if judge == True:
    print('<',end = '')
    if len(str1) > len(str2):
        for i in range(0,len(str2)):
            if(str1[i] == str2[i]):
                print(str1[i],end = '')
        print('>')
    else:
        for i in range(0,len(str1)):
            if(str1[i] == str2[i]):
                print(str1[i],end = '')
            elif(str1[i] != str2[i]):
                break
        print('>')
elif judge == False:
    import sys
    sys.exit(0)